function registerBtn() {
	if(registerForm.userName.value == ""){
		alert("用户名不能为空");
		registerForm.userName.focus();
	}else if(registerForm.psd.value == ""){
		alert("密码不能为空");
		registerForm.psd.focus();
	}else if(registerForm.phone.value == ""){
		alert("手机号码不能为空");
		registerForm.phone.focus();
	}else{
		let phonenum = document.getElementById("telnum");
	    let phone = phonenum.value;
	    let judgePhone = /^(13[0-9]|14[5|7]|15[0-9]|18[0-9])\d{8}$/;
	    if(!judgePhone.test(phone)){
	        alert("手机号码输入错误！请重新输入")
	    }else{
	    	registerForm.action = "registerSuccess.jsp";
	    }
		
	}

}